/**
 * Created by hjqi on 2016/4/26.
 */

var base = require('./mongodb');
var util = require('util');
var storageMetaInfo_collection_name = require('../lib/config/config').config.mongodb.storageMetaInfo_collection;

module.exports = storageMetaInfoDB;

function storageMetaInfoDB(){
    base.call(this,storageMetaInfo_collection_name);
}

util.inherits(storageMetaInfoDB,base);

/*
 storageMetaInfo.schema
 除此之外会有其他schema混入
 （即使把整个世界存到这个collection里也不要大惊小怪，玩笑）
db.storageMetaInfo.findOne()
{
    "name" : "webshelllog",
    "volumeId" : "system-webshelllog",   //主键、唯一索引
    "namespace" : "system",
    "volumeType":"hostPath", //该字段只是针对hostpath类型的，glusterfs是咩有地
    "status" : "NOT_USE",
    "mountAppName" : "",
    "mountNodeName" : "",
    "size" : 1024,
    "_id" : ObjectId("57a5e5ac9b0625ac4f923340")
}*/
